<template>
  <div class="layout index1">
    <div class="menu fixed-top">
      <div class="inner main">
        <span style="position: absolute; top: 12px; left: 12px" @click="goBack"><a style="color: #fff !important">返回上级</a></span>
        <dl>
          <!-- <dt class="line-60">选择年份</dt> -->
          <dt class="line-60"></dt>
          <dd class="years-list" data-open="off">
            <ul>
              <li><a href="?year=2020">2020年</a></li>

              <li><a href="?year=2021">2021年</a></li>

              <li><a href="?year=2022">2022年</a></li>

              <li><a href="?year=2023">2023年</a></li>

              <li><a class="on" href="?year=2024">2024年</a></li>
            </ul>
          </dd>
        </dl>
        <!-- <span class="drop-years-menu icon-chevron-down text-white"></span> -->
      </div>
    </div>
    <!-- <div class="clearfix"></div>
    <div class="gexian"></div> -->
    <div class="content">
      <div class="mains">
        <article class="table-area" id="tableArea" style="border: none">
          <div class="cgi-wrap">
            <div id="whiteBox" class="white-box" v-for="item in list" :key="item.advId" style="margin-bottom: 10px;">
              <div class="kj-tit">
                六合彩开奖记录 {{item.remark}} 第<span class="text-blue text-strong">{{item.title}}</span>期
              </div>
              <div class="kj-box">
                <ul class="clearfix" style="padding-left: 0px !important;">
                  <li v-for="(s, i) in item.content.txt1.split(',').splice(0,6)" :key="i">
                    <dl>
                      <dt class="ball-green">{{s}}</dt>
                      <dd>
                        {{item.content.txt2.split(',')[i]}}
                        <!-- <font class="grey-txt">/</font>
                        <font class="wx-mu">木</font> -->
                      </dd>
                      <dd>
                        {{item.content.txt3.split(',')[i]}}
                        <!-- <span class="text-green">绿</span><span class="grey-txt">/</span><span class="text-black">大</span> -->
                      </dd>
                      <dd>
                        {{item.content.txt4.split(',')[i]}}
                        <!-- <span class="text-pink">双</span><span class="grey-txt">/</span><span class="text-yellow">双</span> -->
                      </dd>
                      <dd>
                        {{item.content.txt5.split(',')[i]}}
                        <!-- <span class="text-brown">野兽</span><span class="grey-txt">/</span><span class="text-caolv">双</span> -->
                      </dd>
                    </dl>
                  </li>
                  <li class="kj-jia">
                    <dl>
                      <dt></dt>
                      <dd></dd>
                      <dd></dd>
                      <dd></dd>
                      <dd></dd>
                    </dl>
                  </li>
                  <li>
                    <dl>
                      <dt class="ball-green">{{item.content.txt1.split(',')[6]}}</dt>
                      <dd>
                        {{item.content.txt2.split(',')[6]}}
                        <!-- 狗<font class="grey-txt">/</font>
                        <font class="wx-mu">木</font> -->
                      </dd>
                      <dd>
                        {{item.content.txt3.split(',')[6]}}
                        <!-- <span class="text-green">绿</span><span class="grey-txt">/</span><span class="text-black">小</span> -->
                      </dd>
                      <dd>
                        {{item.content.txt4.split(',')[6]}}
                        <!-- <span class="text-pink">双</span><span class="grey-txt">/</span><span class="text-yellow">双</span> -->
                      </dd>
                      <dd>
                        {{item.content.txt5.split(',')[6]}}
                        <!-- <span class="text-brown">家禽</span><span class="grey-txt">/</span><span class="text-caolv">双</span> -->
                      </dd>
                    </dl>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </article>
      </div>
    </div>
  </div>
</template>

<script>
import { getList } from "./request/api";
export default {
  data () {
    return {
      list: []
    }
  },
  mounted () {
    this.getListFn();
  },
  methods: {
    goBack () {
      this.$router.go(-1);
    },
    getListFn () {
      let params = {
        timesTamp: "",
        mac: "",
        ip: "",
        sign: "",
        version: "",
        token: "",
        title: "",
        type: "2t",
        content: "",
        status: "",
        orderBy: "create_time",
        isDesc: false,
      };
      this.list = []
      getList(params).then((res) => {
        const data = res.data
        data.forEach(element => {
          element.content = JSON.parse(element.content)
        });
        this.list = data
      });
    },
  },
};
</script>

<style>
.index1 {
  width: 820px;
  margin: 0px auto;
}
.content {
  margin-top: 50px;
  height: 100vh;
}
.mains {
  height: 100%;
  background: #fff;
  height: 100vh;
}
.table-area {
  max-width: 820px;
  /* border: 1px solid #d3d3d3; */
  border: none;
  border-top: none;
}
</style>
